delete an object in an array based on index at level 1 and level 2